package com.wcl.demo.ui.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.wcl.demo.R;
import com.wcl.demo.ui.activity.HomeMusicActivity;
import com.wcl.demo.ui.activity.MusicActivity;
import com.wcl.demo.utils.ActivityUtils;

/**
 * Created by dllo on 15/11/20.
 */
public class MenuLeftFragment extends BaseFragment implements View.OnClickListener {
    private TextView left_music;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.menu_layout_left,container,false);
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        left_music= (TextView) view.findViewById(R.id.left_music);
    }

    @Override
    protected int getLayout() {
        return 0;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        left_music.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        ActivityUtils.startToActivity(getActivity(), MusicActivity.class);
    }
}
